package com.swipemaster.record;

import java.io.Serializable;

import com.swipemaster.network.WorldRecord;

abstract public class Record implements Serializable
{
	public final RecordId recordId;
	private static final long serialVersionUID = 1L;

	public Record(int id)
	{
		recordId = new RecordId(id);
	}

	abstract public Record clone(WorldRecord worldRecord);

	abstract public String getRecordStringForPHP();

	public int getType()
	{
		return recordId.getType();
	}

	abstract public boolean isBetter(Record score);

	abstract public boolean isValid();
}